package com.g2.g2zuulgateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

@EnableZuulProxy        //开启zuul网关
@SpringBootApplication
@EnableDiscoveryClient  //开启eureka服务发现
public class G2ZuulGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(G2ZuulGatewayApplication.class, args);
    }

}
